<script src="js/jquery-1.8.3.js"></script>
<script src="js/jquery-ui-1.9.2.custom.js"></script>
<script src="js/jquery.dataTables.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.dataTables.columnFilter.js"type="text/javascript"></script>
<script src="js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>

<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17838786-4']);
_gaq.push(['_trackPageview']);

(function () {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script>
$(function() {
	$( "#tabs" ).tabs();
});
$(document).ready( function () {
	$('#table-rejeitados').dataTable().columnFilter();
	$('#table-aceitos').dataTable().columnFilter();
	$('#table-submetidos').dataTable().columnFilter();
} );
$(function(){
    $('#links-tab a').click(function(){
    	quantidade = $('#links-tab a').length;
    	for ( var i = 1; i <= quantidade; i++) {
    		document.getElementById('ui-id-'+i).className = "ui-tabs-anchor inactive";
		}
    	var id = $(this).attr('id');
        document.getElementById(id).className = "ui-tabs-anchor active";
        document.getElementById(id).onBlur();
    });
});
</script>
<!-- Script Dialog -->
<script>
  $(function() {
    $( "#dialog" ).dialog({
      autoOpen: false,
      resizable: false,
      modal: true,
    });
    $( ".opener" ).click(function() {
	  
		var id = $(this).attr('idMiniCurso');
		var titulo = $(this).attr('tituloMinicurso');
		var autor = $(this).attr('nomeAutor');
		  
		document.getElementById('idMiniCursoAprovar').value = id;
		document.getElementById('tituloMinicursoAprovar').innerHTML = titulo;
		document.getElementById('nomeAutorAprovar').innerHTML = autor;
		  
		$( "#dialog" ).dialog( "open" );
		  
    });
  });
  </script>
  <script>
  $(function() {
    $( "#dialog2" ).dialog({
      autoOpen: false,
      resizable: false,
      modal: true,
    });
    $( ".opener2" ).click(function() {
    	
    	var id = $(this).attr('idMiniCurso');
		var titulo = $(this).attr('tituloMinicurso');
		var autor = $(this).attr('nomeAutor');
		  
		document.getElementById('idMiniCursoRejeitar').value = id;
		document.getElementById('tituloMinicursoRejeitar').innerHTML = titulo;
		document.getElementById('nomeAutorRejeitar').innerHTML = autor;
		  
		$( "#dialog2" ).dialog( "open" );
		
    });
  });
  </script>